package my.learnDB.mybatis.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class Account  implements Serializable {

    private Integer id;
    private String accountName;  // 数据库 name
    private Integer uid;  // 数据库 userId
    private Float money;
    private Date birthday;
    private String address;

    public Account(String accountName, Integer uid, Float money) {
        this.accountName = accountName;
        this.uid = uid;
        this.money = money;
    }
}
